Recognition method and recognition device for sheet-type medium

ABSTRACT

The present invention relates to a recognition method and a recognition device for a sheet-type medium. The method comprises: step  1 , collecting image information; step  2 , splitting from the image information collected image information of an object-to-be-recognized; step  3 , reconstructing image data of a feature area, extracting a feature on the reconstructed image data, and forming an eigenvector; and, step  4 , sending the eigenvector into a standard data-trained classifier, and acquiring a recognition result. The method has an image reconstructed on the basis of feature area prior information, improves image quality, facilitates increased recognition accuracy, and, because only the image area that requires feature extraction is reconstructed, reduces storage space consumption. This not only saves large amounts of storage space and time and increases resource utilization rate, but also increases recognition accuracy and achieves an improved balance between resource and efficiency.

This application is the national phase of International Application No. PCT/CN2013/078914, filed on Apr. 2, 2013, which claims the priority Chinese Patent Application No. 201310012084.6, entitled “RECOGNITION METHOD AND RECOGNITION DEVICE FOR SHEET-TYPE MEDIUM”, filed on Jan. 11, 2013 with the State Intellectual Property Office of People's Republic of China, which applications are hereby incorporated by reference to the maximum extent allowed by law.

FIELD

The disclosure relates to pattern recognition technology based on image information, and in particular to a method and a device for recognizing a sheet-medium according to image information.

BACKGROUND

In the field of image-based pattern recognition, an image to be recognized is collected by a sensor, and if the image has poor resolution, accuracy of recognition results greatly decreases, particularly for recognition among confusing recognition objects, such as “O” and “D”, etc, in character recognition. Though computer technology is developing rapidly, in consideration of cost, a hardware platform only satisfying actual need instead of a high-end hardware platform may be selected. In this case, in practical manufacturing process, due to differences of hardware and diversity of recognition space, a lot of recognition errors for confusing objects may occur.

There are usually two existing solutions. One is to update hardware devices to improve image resolution, and the other one is to improve a recognition algorithm to improve recognition accuracy. In the first solution, the problem of recognition errors for confusing objects can be completely solved, but in this way resolution of the entire image is improved and accordingly information collecting device, storage device and processor, etc, need to be updated, which greatly increases production cost and weakens product competitiveness. In the second solution, signal reconstruction technology is used for processing the collected signal, to improve a ratio between useful signal data volume to noise data volume and improve signal quality. However, in the actually collected signal, the useful signal data volume is much larger than the noise data volume, and in this case reconstructing all collected signals causes large amount of data processing and slow algorithm processing speed. Therefore, this solution is not ideal even though the recognition accuracy may be improved to certain extent.

Hence, it is very important to provide an image-based character recognition method with fast processing speed and high recognition accuracy in the technical field of sheet-medium recognition and classification.

SUMMARY

The disclosure is to provide a sheet-medium recognition method to distinguish and classify sheet-media or valuable documents such as banknotes, etc, and to implement accurate recognition among confusing objects in case of poor image resolution.

A sheet-medium recognition device is also provided according to the disclosure to implement accurate recognition for a sheet-medium through executing the foregoing recognition method.

The sheet medium recognition method includes: step 1, collecting image information; step 2, separating image information of an object to be recognized out of the collected image information; step 3, reconstructing image data of a feature region, and extracting a feature from the reconstructed image data to form an eigenvector; and step 4, inputting the eigenvector into a classifier trained through standard data to acquire a recognition result.

Reconstructing image data of the feature region in step 3 includes:

assuming that image information of the object to be recognized is A, A is a m×n image, and f(h,w) represents a gray value of an element in row h and column w of the image A , where h=1,2, . . . ,m and w=1,2, . . . ,n; and assuming that a m₁×n₁ image B with a higher resolution is to be reconstructed, and g(i, j) represents a gray value of an element in row i and column j of the image B, where i=1,2, . . . , m₁, and j=1,2, . . . , n₁;

assuming that

${{\Delta\; x} = \frac{n_{1}}{n}},{{\Delta\; y} = \frac{m_{1}}{m}},{{x = {{\frac{j}{\Delta\; x}\mspace{14mu}{and}\mspace{14mu} y} = \frac{i}{\Delta\; y}}};}$

if x and y are both integers, then g(i,j)=f(y,x);

if x is non-integer, y is integer, and x is rounded down to w_(x), then g(i,j)=(w _(x)+1−x)·f(y,w _(x))+(x−w _(x))·f(y,w _(x)+1)

if x is integer, y is non-integer, and y is rounded down to h_(y), then g(i,j)=(h _(y)+1−y)·f(h _(y) ,x)+(y−h _(y))·f(h _(y)+1,x)

if x is non-integer, y is non-integer, x is rounded down to w_(x) and y is rounded down to h_(y), then g(i,j)=(h _(y)+1−y)·((w _(x)+1−x)·f(h _(y) ,w _(x))+(x−w _(x))·f(h _(y) ,w _(x)+1))+(y−h _(y))·((w _(x)+1−x)·f(h _(y)+1,w _(x))+(x−w _(x))·f(h _(y)+1,w _(x)+1))

In addition, extracting the feature in step 3 includes: step 31, assuming that a matrix

$\begin{pmatrix} a_{11} & \ldots & a_{1n} \\ \ldots & \ldots & \ldots \\ a_{m\; 1} & \ldots & a_{mn} \end{pmatrix}\quad$ represents two-dimensional gray image data A, a_(ij) represents a gray value of a pixel point in row i and column j of the image data, where i=1,2, . . . , m and j=1,2, . . . , n, assuming that Boxlist={box₁, box₂, . . . , box_(n)}, where box_(i) represents an ith image region in the image data A from which the feature is to be extracted, acquiring box_(i) from the Boxlist; step 32, acquiring data

$B_{i} = {\begin{pmatrix} b_{11} & \ldots & b_{1q} \\ \ldots & \ldots & \ldots \\ b_{p\; 1} & \ldots & b_{pq} \end{pmatrix}\quad}$ for the image feature region designated by box_(i); step 33, reconstructing

$C_{i} = {\begin{pmatrix} c_{11} & \ldots & c_{1t} \\ \ldots & \ldots & \ldots \\ c_{u\; 1} & \ldots & c_{ut} \end{pmatrix}\quad}$ from data B_(i) of the feature region and storing C_(i) into a designated position, where t>q and u>p; step 34, determining whether all feature regions are reconstructed, executing step 35 if all feature regions are reconstructed, and repeating step 31 to step 33 to acquire a group of image regions C₁, C₂, . . . , C_(n) if not all feature regions are reconstructed; and step 35, extracting needed features from the image regions C₁, C₂, . . . , C_(n) to form eigenvectors β₁, β₂, . . . , β_(n).

The sheet-medium recognition device includes an image collection unit, configured to acquire image information of a sheet medium to be recognized; an image separation unit configured to implement adaptive separation on the image of the sheet medium; a feature region reconstruction unit, configured to implement image reconstruction for a feature region, and store the reconstructed image data of the feature region into a designated position; a feature extraction unit, configured to extract a feature from the reconstructed image data of the feature region to form an eigenvector; a data storage unit, configured to store position information of preset feature regions and standard template data; a recognition unit, configured to classify and recognize an input eigenvector; and a recognition result outputting unit, configured to output a result for the classification and recognition which is acquired by the recognition unit.

In the sheet-medium recognition method according to the disclosure, an image is reconstructed according to priori information of feature regions to improve quality of the image, which is beneficial for improving recognition accuracy. Since the reconstruction is performed only in the regions for which features are to be extracted, storage space consumption is reduced, thereby not only saving a lot of storage space and time, improving resource utilization rate, but also effectively improving recognition accuracy, and reaching a balance between resource and efficiency.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of image data to be reconstructed;

FIG. 2 is a schematic diagram of reconstructed image data;

FIG. 3 is a flow chart showing image reconstruction of a feature region;

FIG. 4 is a flow chart of a sheet-medium recognition method;

FIG. 5 shows effect for image reconstruction of a feature region;

FIG. 6 is a structural diagram of a sheet-medium recognition device;

FIG. 7 is a schematic diagram of a sheet-medium signal collected by a sheet-medium recognition device;

FIG. 8 is a schematic diagram of a sheet-medium separated from background; and

FIG. 9 is a comparison diagram for sheet-medium signals which are respectively collected before and after hardware update.

DETAILED DESCRIPTION

Technical solutions of the embodiments of the present disclosure are described completely and clearly with the drawings of the embodiments of the disclosure. Apparently, the described embodiments are merely a few rather than all of the embodiments of the present disclosure. Any other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

In this embodiment, a banknote having a denomination of RMB 50 yuan is taken as an object to be recognized, to illustrate a sheet-medium recognition method and a sheet-medium recognition device. Referring to FIG. 4, the sheet medium recognition method includes following steps.

Step 1 includes: collecting image information, where the collected image information is shown in FIG. 7.

Step 2 includes: separating image information of an object to be recognized out of the collected image information, as shown in FIG. 8.

Step 3 includes: reconstructing image data of a feature region as shown in FIG. 5, and extracting a feature from the reconstructed image data to form an eigenvector.

Step 4 includes: inputting the eigenvector into a classifier trained through standard data to acquire a recognition result.

Step 5, ending the process.

Reconstructing the image data of the feature region in step 3 includes:

assuming that image information of the object to be recognized is A, A is a m×n image, and f(h,w) represents a gray value of an element in row h and column w of the image A, where h=1, 2, . . . , m, and w=1, 2, . . . , n; and assuming that a m₁×n₁, image B with a higher resolution is to be reconstructed, and g(i,j) represents a gray value of an element in row i and column j of the image B, where i=1, 2, . . . , m₁, and j=1, 2, . . . , n₁;

assuming that

${{\Delta\; x} = \frac{n_{1}}{n}},{{\Delta\; y} = \frac{m_{1}}{m}},{x = {{\frac{j}{\Delta\; x}\mspace{14mu}{and}\mspace{14mu} y} = \frac{i}{\Delta\; y}}},$

if x and y are both integers, then g(i,j)=f(y,x);

if x is non-integer, y is integer, and x is rounded down to w_(x), then g(i,j)=(w _(x)+1−x)·f(y,w _(x))+(x−w _(x))·f(y,w _(x)+1)  formula (1);

if x is integer, y is non-integer, and y is rounded down to h_(y), then g(i,j)=(h _(y)+1−y)·f(h _(y) ,x)+(y−h _(y))·f(h _(y)+1,x)  formula (2);

if x is non-integer, y is non-integer, x is rounded down to w_(x) and y is rounded down to h_(y), then g(i,j)=(h _(y)+1−y)·((w _(x)+1−x)·f(h _(y) ,w _(x))+(x−w _(x))·f(h _(y) ,w _(x)+1))+(y−h _(y))·((w _(x)+1−x)·f(h _(y)+1,w _(x))+(x−w _(x))·f(h _(y)+1,w _(x)+1))  formula (3).

In this way, an image as shown in FIG. 2 is reconstructed from an image as shown in FIG. 1.

Referring to FIG. 3, extracting the feature in step 3 includes:

Step 31, assuming that a matrix

$\begin{pmatrix} a_{11} & \ldots & a_{1n} \\ \ldots & \ldots & \ldots \\ a_{m\; 1} & \ldots & a_{mn} \end{pmatrix}\quad$ represents data A of a two-dimensional gray image, a_(ij) represents a gray value of a pixel point in row i and column j of the image data, where i=1,2, . . . , m and j=1,2, . . . , n, assuming that Boxlist={box₁, box₂, . . . , box_(n)} where box_(i) represents an ith image region in the image data A from which the feature is to be extracted, acquiring box_(i) from the Boxlist;

Step 32, acquiring data

$B_{i} = {\begin{pmatrix} b_{11} & \ldots & b_{1q} \\ \ldots & \ldots & \ldots \\ b_{p\; 1} & \ldots & b_{pq} \end{pmatrix}\quad}$ for the image feature region designated by box_(i);

Step 33, reconstructing

$C_{i} = {\begin{pmatrix} c_{11} & \ldots & c_{1t} \\ \ldots & \ldots & \ldots \\ c_{u\; 1} & \ldots & c_{ut} \end{pmatrix}\quad}$ from data 13, of the feature region and storing C_(i) into a designated position, where t>q and u>p;

Step 34, determining whether all feature regions are reconstructed, executing step 35 if all feature regions are reconstructed, and repeating step 31 to step 33 to acquire a group of image regions C₁, C₂, . . . , C_(n) if not all feature regions are reconstructed; and

Step 35, extracting needed features from the image regions C₁, C₂, . . . , C_(n) to form eigenvectors β₁, β₂, . . . , β_(n).

According to the embodiment, during the sheet-medium recognition, image of feature regions are reconstructed with the image reconstruction method in this embodiment by utilizing priori coordinate information of the feature regions, so as to improve signal to noise ratio and improve recognition accuracy without modifying hardware resource.

Referring to FIG. 6, the sheet-medium recognition device according to the embodiment includes:

an image collection unit, configured to acquire image information of a sheet-medium to be recognized;

an image separation unit configured to implement adaptive separation on the image of the sheet medium;

a feature region reconstruction unit, configured to implement image reconstruction for a feature region, and store the reconstructed image data of the feature region into a designated position;

a feature extraction unit, configured to extract a feature from the reconstructed image data of the feature region to form an eigenvector;

a data storage unit, configured to store position information of preset feature regions, standard template data, and other necessary data information needed for the recognition;

a recognition unit, configured to classify and recognize an input eigenvector; and

a recognition result outputting unit, configured to output a result for the classification and recognition which is acquired by the recognition unit.

In the sheet-medium recognition method according to the disclosure, an image is reconstructed according to priori information of feature regions to improve quality of the image, which is beneficial for improving recognition accuracy. Since the reconstruction is performed only in the regions for which features are to be extracted, storage space consumption is reduced, thereby not only saving a lot of storage space and time, improving resource utilization rate, but also effectively improving recognition accuracy, and reaching a good balance between resource and efficiency. The sheet-medium recognition device provides hardware and algorithm supports for the recognition method.

The foregoing embodiments are only preferred embodiments of the disclosure and are not meant to limit the disclosure, any equivalent change made according to the specification and the drawings of the disclosure shall fall in the scope of the claims of the disclosure. 

The invention claimed is:
 1. A sheet-medium recognition method comprising: step 1, collecting image information; step 2, separating image information of an object to be recognized out of the collected image information; step 3, reconstructing image data of a feature region, and extracting a feature from the reconstructed image data to form an eigenvector; and step 4, inputting the eigenvector into a classifier trained through standard data to acquire a recognition result.
 2. The sheet-medium recognition method according to claim 1, wherein reconstructing the image data of the feature region in step 3 comprises: assuming that image information of the object to be recognized is A, A is a m×n image, and f(h,w) represents a gray value of an element in row h and column w of the image A wherein h=1,2, . . . , m and w=1,2, . . . , n; and assuming that a m₁×n₁ image B with a higher resolution is to be reconstructed, and g(i,j) represents a gray value of an element in row i and column j of the image B, wherein i=1,2, . . . , m₁, and j=1, 2, . . . , n₁; assuming that ${{\Delta\; x} = \frac{n_{1}}{n}},{{\Delta\; y} = \frac{m_{1}}{m}},{{x = {{\frac{j}{\Delta\; x}\mspace{14mu}{and}\mspace{14mu} y} = \frac{i}{\Delta\; y}}};}$ if x and y are both integers, then g(i,j)=f(y,x); if x is non-integer, y is integer, and x is rounded down to w_(x), then g(i,j)=(w _(x)+1−x)·f(y,w _(x))+(x−w _(x))·f(y,w _(x)+1) if x is integer, y is non-integer, and y is rounded down to h_(y), then g(i,j)=(h _(y)+1−y)·f(h _(y) ,x)+(y−h _(y))·f(h _(y)+1,x) if x is non-integer, y is non-integer, x is rounded down to w_(x) and y is rounded down to h_(y), then g(i,j)=(h _(y)+1−y)·((w _(x)+1−x)·f(h _(y) ,w)+(x−w _(x))·f(h _(y) ,w _(x)+1))+(y−h _(y))·((w _(x)+1−x)·f(h _(y)+1,w _(x))+(x−w _(x))·f(h _(y)+1,w _(x)+1)).
 3. The sheet-medium recognition method according to claim 1, wherein extracting the feature in step 3 comprises: step 31, assuming that a matrix $\begin{pmatrix} a_{11} & \ldots & a_{1n} \\ \ldots & \ldots & \ldots \\ a_{m\; 1} & \ldots & a_{mn} \end{pmatrix}\quad$ represents two-dimensional gray image data A, a_(ij) represents a gray value of a pixel point in row i and column j of the image data, wherein i=1,2, . . ., m and j=1,2, . . . , n, assuming that Boxlist={box₁, box₂, . . . , box_(n)}, wherein box_(i) represents an ith image region in the image data A from which the feature is to be extracted, acquiring box_(i) from the Boxlist; step 32, acquiring data $B_{i} = {\begin{pmatrix} b_{11} & \ldots & b_{1q} \\ \ldots & \ldots & \ldots \\ b_{p\; 1} & \ldots & b_{pq} \end{pmatrix}\quad}$ for the feature region designated by box_(i); step 33, reconstructing $C_{i} = {\begin{pmatrix} c_{11} & \ldots & c_{1t} \\ \ldots & \ldots & \ldots \\ c_{u\; 1} & \ldots & c_{ut} \end{pmatrix}\quad}$ from data B_(i) of the feature region and storing C_(i) into a designated position, wherein t>q and u>p; step 34, determining whether all feature regions are reconstructed, executing step 35 if all feature regions are reconstructed, and repeating step 31 to step 33 to acquire a group of image regions C₁, C₂, . . . , C_(n) if not all feature regions are reconstructed; and step 35, extracting needed features from the image regions C₁, C₂, . . . , C_(n) to form eigenvectors β₁, β₂, . . . , β_(n).
 4. A sheet-medium recognition device comprising: an image collection unit, configured to acquire image information of a sheet medium to be recognized; an image separation unit configured to implement adaptive separation on the image of the sheet medium; a feature region reconstruction unit, configured to implement image reconstruction for a feature region, and store the reconstructed image data of the feature region into a designated position; a feature extraction unit, configured to extract a feature from the reconstructed image data of the feature region to form an eigenvector; a data storage unit, configured to store position information of preset feature regions and standard template data; a recognition unit, configured to classify and recognize an input eigenvector; and a recognition result outputting unit, configured to output a result for the classification and recognition which is acquired by the recognition unit. 